#pragma once
#include "common.h"
#include "BTListWnd.h"
#include "COMListWnd.h"
#include "GPSViewWnd.h"
#include "../loglib/CommLog.h"


class CBTCOMConnWnd : public CMzWndEx
{
    MZ_DECLARE_DYNAMIC(CBTCOMConnWnd);

public:
    //CCommLog            *logger;

public:
    UiCaption           m_Caption;
    UiScrollWin         m_ScrollWin;
    UiButton            m_SplitLine[4];
    UiStatic            m_ConnNameStatic;

    UiSingleLineEdit    m_EditName;
    UiButtonEx          m_SelectBTBtn;
    UiButtonEx          m_SelectCOMBtn;

    UiToolbar_Text      m_Toolbar;

public:
    CBTCOMConn          m_Conn;
    bool                m_EditFlag;

public:
    CBTListWnd          *m_pBTListWnd;
    CCOMListWnd         *m_pCOMListWnd;
    CGPSViewWnd         *m_pGPSViewWnd;

public:
    virtual BOOL OnInitDialog();
    virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);
    LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);

public:
    CBTCOMConnWnd(void);
    CBTCOMConnWnd(CBTCOMConn initConn);
    ~CBTCOMConnWnd(void);
};
